package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysFaultFeedback;

import java.util.List;

/**
 * 故障反馈业务对象 sys_fault_feedback
 *
 * @author system
 * @date 2025-10-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysFaultFeedback.class, reverseConvertGenerate = false)
public class SysFaultFeedbackBo extends BaseEntity {

    /**
     * 机型
     */
    @NotBlank(message = "挖掘机机型不能为空", groups = { AddGroup.class })
    private String excavatorModel;

    /**
     * 故障部分
     */
    @NotBlank(message = "故障部分不能为空", groups = { AddGroup.class })
    private String faultPart;

    /**
     * 故障现象
     */
    @NotBlank(message = "故障现象不能为空", groups = { AddGroup.class })
    private String faultSymptom;

    /**
     * 详细故障描述
     */
    @NotBlank(message = "详细故障描述不能为空", groups = { AddGroup.class })
    private String faultDetail;

    /**
     * 备注
     */
    private String remark;

    /**
     * 图片URL列表（前端上传后回填）
     */
    @Size(max = 3, message = "最多上传3张图片")
    private List<String> imageUrls;

}

